﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SiteManager.aspx.cs" Inherits="Card.Manager.SiteManager" %>

<%@ Register Src="Controls/UserPicker.ascx" TagName="UserPicker" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>分站管理员</title>
    <link href="Css/Style.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="TB">
            <tr>
                <td class="TD_Input_Text">
                    分站名称
                </td>
                <td class="TD_Input">
                    <asp:Literal ID="ltlSiteName" runat="server"></asp:Literal>
                    <asp:Literal ID="ltlID" Visible="false" runat="server"></asp:Literal>
                </td>
                <td class="TD_Input_Text">
                    分站代码
                </td>
                <td class="TD_Input">
                    <asp:Literal ID="ltlSiteCode" runat="server"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td class="TD_Input_Text">
                    分站网址
                </td>
                <td class="TD_Input" colspan="3">
                    <asp:Literal ID="ltlSiteUrl" runat="server"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td class="TD_Input" colspan="4">
                    <uc1:UserPicker ID="userPicker" Text="添加管理员" runat="server" AutoPostBack="true" />
                </td>
            </tr>
            <tr>
                <td class="TD_Input" colspan="4">
                    <asp:Repeater ID="rptManager" runat="server" OnItemCommand="rptManager_ItemCommand">
                        <HeaderTemplate>
                            <table class="TB">
                                <tr class="TB_Header">
                                    <td>
                                        UserID
                                    </td>
                                    <td>
                                        工号
                                    </td>
                                    <td>
                                        用户名
                                    </td>
                                    <td>
                                        真实姓名
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr class="TB_Item">
                                <td>
                                    <%# Eval("USER_ID") %>
                                </td>
                                <td>
                                    <%# Eval("EMPLOYEE_NUMBER")%>
                                </td>
                                <td>
                                    <%# Eval("USER_NAME")%>
                                </td>
                                <td>
                                    <%# Eval("REAL_NAME")%>
                                </td>
                                <td>
                                    <asp:LinkButton ID="btnDelete" CommandName="DELETE" CommandArgument='<%#Eval("USER_ID") %>'
                                        runat="server">删除</asp:LinkButton>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <AlternatingItemTemplate>
                            <tr class=" TB_Alter">
                                <td>
                                    <%# Eval("USER_ID") %>
                                </td>
                                <td>
                                    <%# Eval("EMPLOYEE_NUMBER")%>
                                </td>
                                <td>
                                    <%# Eval("USER_NAME")%>
                                </td>
                                <td>
                                    <%# Eval("REAL_NAME")%>
                                </td>
                                <td>
                                    <asp:LinkButton ID="btnDelete" CommandName="DELETE" CommandArgument='<%#Eval("USER_ID") %>'
                                        runat="server">删除</asp:LinkButton>
                                </td>
                            </tr>
                        </AlternatingItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
            </tr>
            <tr>
                <td class="TD_Input" colspan="4">
                    <asp:Button ID="btnBack" runat="server" Text="返回" OnClick="btnBack_Click" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
